package com.example.duihua.entity;

import lombok.Data;

import java.util.Date;

@Data
public class Message {
    private Long id;
    private String conversationId; // 私聊: user1_user2, 群聊: group_groupId
    private Long senderId;
    private Long receiverId; // 用户ID或群组ID
    private String type; // PRIVATE, GROUP
    private String contentType; // TEXT, IMAGE, VOICE, VIDEO, FILE
    private String content; // JSON格式的消息内容
    private String status; // SENT, DELIVERED, READ
    private Date createdAt;
}